package com.test.ssh.service.impl;

import java.util.List;

import com.test.ssh.model.User;
import com.test.ssh.service.UserManager;

public class UserManagerImpl extends GenericManagerImpl<User,Long> implements UserManager{

	@Override
	public User getUserByUsernam(String username) {
		List<User> l  = this.findByHql("from User where username=?", username);
		if(l.size()<1)
			return null ;
		return l.get(0);
	}
	

}
